// Home页面的mock数据

// 热门开源项目数据
export const projects = [
  {
    id: 1,
    name: "TechFlow Framework",
    description: "新一代高性能微服务框架，支持分布式部署和服务治理",
    icon: "https://ai-public.mastergo.com/ai/img_res/2a7d5287ea2b65d925c3e6a006e9cf36.jpg",
    stars: "12.5k",
    language: "Java",
  },
  {
    id: 2,
    name: "DataViz Pro",
    description: "专业的数据可视化解决方案，支持多种图表类型和实时数据展示",
    icon: "https://ai-public.mastergo.com/ai/img_res/e1ae6ca8907d230473bd72970a17cff1.jpg",
    stars: "8.3k",
    language: "TypeScript",
  },
];

// 精选文章数据
export const articles = [
  {
    id: 1,
    title: "深入理解 Kubernetes 资源调度机制",
    summary: "本文详细介绍了 Kubernetes 中的资源调度原理，包括调度器的工作流程、资源配额管理等核心概念",
    author: {
      name: "陈思远",
      avatar: "https://ai-public.mastergo.com/ai/img_res/ac3268bfddeffc36b69c9c86f0f7839c.jpg",
    },
    views: "2.3k",
    likes: 456,
    liked: true,
  },
  {
    id: 2,
    title: "GraphQL 在大规模应用中的实践经验",
    summary: "分享在企业级应用中使用 GraphQL 的最佳实践，包括性能优化、缓存策略等关键技术点",
    author: {
      name: "林雨晨",
      avatar: "https://ai-public.mastergo.com/ai/img_res/62eb56cc539c6a5ce487dcd44486c88c.jpg",
    },
    views: "1.8k",
    likes: 389,
    liked: false,
  },
  {
    id: 3,
    title: "微前端架构实践：从理论到落地",
    summary: "详细解析微前端的核心理念，分享大型企业级应用的微前端改造实践经验与技术难点突破",
    author: {
      name: "张涛",
      avatar: "https://ai-public.mastergo.com/ai/img_res/a0db0d49209435a570527c2bcdaa4dda.jpg",
    },
    views: "3.1k",
    likes: 567,
    liked: false,
  },
  {
    id: 4,
    title: "Redis 性能优化与架构升级实战",
    summary: "深度剖析 Redis 性能优化技巧，包括内存管理、持久化策略、集群部署等关键技术要点",
    author: {
      name: "郭晓峰",
      avatar: "https://ai-public.mastergo.com/ai/img_res/1a10f5fafd5da24ed029dd048e32123b.jpg",
    },
    views: "2.7k",
    likes: 432,
    liked: true,
  },
  {
    id: 5,
    title: "Flutter 跨平台开发最佳实践指南",
    summary: "基于实际项目经验，深入浅出讲解 Flutter 开发技巧，解决跨平台开发中的常见痛点",
    author: {
      name: "赵明月",
      avatar: "https://ai-public.mastergo.com/ai/img_res/fad5254d0041f64e0904628f41af502e.jpg",
    },
    views: "2.1k",
    likes: 398,
    liked: false,
  },
];

// 热门社区数据
export const communities = [
  {
    id: 1,
    title: "Cloud Native 技术社区",
    description: "一个专注于云原生技术、DevOps 和容器编排...",
    members: "12,438",
    imageUrl: "https://ai-public.mastergo.com/ai/img_res/f61e916dbcf1d79833ca8fc682e6719e.jpg",
  },
  {
    id: 2,
    title: "前端开发者社区",
    description: "一个专注于前端开发的社区，提供技术交流、资源...",
    members: "8,926",
    imageUrl: "https://ai-public.mastergo.com/ai/img_res/71739cef093b288520734cceb0164e51.jpg",
  },
  {
    id: 3,
    title: "vue开发者社区",
    description: "一个专注于 Vue.js 技术的社区，提供技术交流...",
    members: "8,326",
    imageUrl: "https://ai-public.mastergo.com/ai/img_res/71739cef093b288520734cceb0164e51.jpg",
  },
];

// 学习路线数据
export const learningPaths = [
  {
    id: 1,
    title: "全栈工程师成长路线",
    count: 32,
  },
  {
    id: 2,
    title: "人工智能算法工程师",
    count: 28,
  },
  {
    id: 3,
    title: "云原生架构师",
    count: 24,
  },
];

// 广告位数据
export const ads = [
  {
    id: 1,
    title: "云服务器限时优惠",
    description: "新用户首购云服务器低至2折，高性能实例助力业务快速发展",
    image: "https://ai-public.mastergo.com/ai/img_res/d61232c507ba77ff22aa3a4273c36647.jpg",
    url: 'https://example.com/sale'  // 外部链接
  },
  {
    id: 2,
    title: "开发者大会2023",
    description: "探索前沿技术，连接全球开发者，共创技术未来",
    image: "https://ai-public.mastergo.com/ai/img_res/18e993e8753fb5c3087a595fb2e276e5.jpg",
    url: '/products/new'  // 内部路由
  },
  {
    id: 3,
    title: "技术认证课程",
    description: "专业技术认证培训，提升职场竞争力，开启技术进阶之路",
    image: "https://ai-public.mastergo.com/ai/img_res/f61e916dbcf1d79833ca8fc682e6719e.jpg",
    url: '/products/new'
  }
];

// 广告位轮播配置
export const adSwiperOptions = {
  loop: true,
  autoplay: {
    delay: 3000,
    disableOnInteraction: false
  }
};

// 轮播图数据
export const slides = [
  {
    id: 1,
    title: "技术创新峰会2023",
    description: "探索前沿技术，连接全球开发者，共创技术未来",
    image: "https://ai-public.mastergo.com/ai/img_res/18e993e8753fb5c3087a595fb2e276e5.jpg"
  },
  {
    id: 2,
    title: "云原生技术实践",
    description: "深入了解云原生架构，掌握容器化部署最佳实践",
    image: "https://ai-public.mastergo.com/ai/img_res/d61232c507ba77ff22aa3a4273c36647.jpg"
  },
  {
    id: 3,
    title: "AI 开发者大会",
    description: "人工智能技术分享，探讨 AI 在各领域的创新应用",
    image: "https://ai-public.mastergo.com/ai/img_res/f61e916dbcf1d79833ca8fc682e6719e.jpg"
  }
];

// Swiper配置
export const swiperOptions = {
  loop: true,
  autoplay: {
    delay: 4000,
    disableOnInteraction: false
  },
  pagination: {
    el: '.swiper-pagination',
    clickable: true
  },
  navigation: {
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev'
  }
};
